{template 'public/header'}

{template 'public/comhead'}

<link rel="stylesheet" type="text/css" href="../addons/yzzc_sun/template/public/ygcss.css">
<link rel="stylesheet" type="text/css" href="../addons/yzzc_sun/template/public/zoomify.min.css">
<style>
    .control_info{margin-top: 7px}
</style>
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>
    <li class="active"><a href="javascript:void(0);">预订下单</a></li>
    <li><a href="{php echo $this->createWebUrl('order');}"><i class="fa fa-refresh"></i>返回订单列表</a></li>
</ul>
<div class="main ygmain">
    <form  method="post" class="form-horizontal form" enctype="multipart/form-data" >
        <input type="hidden" name="c" value="site" />
        <input type="hidden" name="a" value="entry" />
        <input type="hidden" name="m" value="yzzc_sun" />
        <input type="hidden" name="do" value="order" />
        <input type="hidden" name="op" value="fees" />
        <input type="hidden" name="id" value="{$order_id}" />
        <div class="row">
            <div class="col-sm-4">
                <div class="panel panel-default ">
                    <div class="panel-heading">
                        基础信息
                    </div>
                    <div class="panel-body">
                        <div class="pb15 col-sm-12">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">名称:</label>
                            <div class="col-sm-9 control_info">
                                {$order['car_name']}
                            </div>
                        </div>
                        <div class="pb15 col-sm-12">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">车牌:</label>
                            <div class="col-sm-9 control_info">
                                {$order['carnum']}
                            </div>
                        </div>
                        <div class="pb15 col-sm-12">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">客户:</label>
                            <div class="col-sm-9 control_info">
                                {$order['username']}
                            </div>
                        </div>

                        {if $order['distribution_name']}
                        <div class="pb15 col-sm-12">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">经办人:</label>
                            <div class="col-sm-9 control_info">
                                {$order['distribution_name']}
                            </div>
                        </div>
                        {/if}

                        <div class="pb15 col-sm-12">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">租金/天:</label>
                            <div class="col-sm-9 control_info">
                                {$order['money']}
                            </div>
                        </div>
                        <div class="pb15 col-sm-12">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">租期:</label>
                            <div class="col-sm-9 control_info">
                                {$order['day']}/天
                            </div>
                        </div>
                        <div class="pb15 col-sm-12">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">开始时间:</label>
                            <div class="col-sm-9 control_info">
                                {$order['start_time']}
                            </div>
                        </div>
                        <div class="pb15 col-sm-12">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">结束时间:</label>
                            <div class="col-sm-9 control_info">
                                {$order['end_time']}
                            </div>
                        </div>
                        <div class="pb15 col-sm-12">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">送车人:</label>
                            <div class="col-sm-9 control_info">
                                {$order['shuttle_name']}
                                (
                                {if $order['gettype']==1}
                                门店
                                {else}
                                上门
                                {/if}
                                )
                            </div>
                        </div>
                        {if $delivery['delivery_start_meter']}
                        <div class="pb15 col-sm-12">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">交车仪表:</label>
                            <div class="col-sm-9 control_info">
                                {loop $delivery['delivery_start_meter'] $index $value}
                                <img src="{$value}" alt="" style = 'height: 70px;'>
                                {/loop}
                            </div>
                        </div>
                        {/if}
                        {if $order['reclaim_shuttle_name']}
                        <div class="pb15 col-sm-12">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">还车人:</label>
                            <div class="col-sm-9 control_info">
                                {if $order['reclaim_shuttle_name']}
                                {$order['reclaim_shuttle_name']}(
                                {if $order['is_onsite']==1}
                                上门
                                {else}
                                门店
                                {/if}
                                )
                                {/if}
                            </div>
                        </div>
                        {/if}
                        {if $delivery['delivery_start_meter']}
                        <div class="pb15 col-sm-12">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">还车仪表:</label>
                            <div class="col-sm-9 control_info">
                                {loop $delivery['delivery_start_meter'] $index $value}
                                <img src="{$value}" alt="" style = 'height: 70px;'>
                                {/loop}
                            </div>
                        </div>
                        {/if}
                        <br>
                        <br>
<!--                        <div class="form-group">-->
<!--                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">租期</label>-->
<!--                            <div class="col-sm-10">-->
<!--                                <input name="money" disabled type="text" value="{$order['total_money']}"  class="form-control"  placeholder="请输入租金"/>-->
<!--                            </div>-->
<!--                        </div>-->

                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">油量</label>
                            <div class="col-sm-9">
                                <div class="input-group" style="width: 1000px;">
                                    <div class="actime" style="display: inline-block;margin-bottom: 2px;">
                                        <input class="form-control" name="km_start" value="{$fees['km_start']}"  placeholder="请输入油量起" style="display: inline-block;width:157px;">
                                        <div style="width: 23px;display: inline-block;margin-left: 15px;">止</div>
                                        <input type="text" name="km_end" value="{$fees['km_end']}" placeholder="请输入油量止" style="width: 157px;display: inline-block;height: 35px;padding: 6px 12px;border: 1px solid #ccc;border-radius: 1px;">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">公里数</label>
                            <div class="col-sm-9">
                                <div class="input-group" style="width: 1000px;">
                                    <div class="actime" style="display: inline-block;margin-bottom: 2px;">
                                        <input class="form-control" name="petrol_start" value="{$fees['petrol_end']}"  placeholder="请输入公里数起" style="display: inline-block;width:157px;">
                                        <div style="width: 23px;display: inline-block;margin-left: 15px;">止</div>
                                        <input type="text" name="petrol_end" value="{$fees['petrol_end']}"  placeholder="请输入公里数止" style="width: 157px;display: inline-block;height: 35px;padding: 6px 12px;border: 1px solid #ccc;border-radius: 1px;">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">时间</label>
                            <div class="col-sm-9">
                                <div class="input-group" style="width: 1000px;">
                                    <div class="actime" style="display: inline-block;margin-bottom: 2px;">
                                        <input class="form-control" name="start_time" value="{$fees['start_time']}"  placeholder="请输入时间起" style="display: inline-block;width:157px;">
                                        <div style="width: 23px;display: inline-block;margin-left: 15px;">~</div>
                                        <input type="text" name="end_time" value="{$fees['start_time']}"  placeholder="请输入时间止" style="width: 157px;display: inline-block;height: 35px;padding: 6px 12px;border: 1px solid #ccc;border-radius: 1px;">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">保证金</label>
                            <div class="col-sm-10">
                                <input name="security" value="{$fees['security']}" type="text"  class="form-control"  placeholder="请输入保证金"/>
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">退押金</label>
                            <div class="col-sm-10">
                                <input name="refund_deposit" value="{$fees['refund_deposit']}" type="text"  class="form-control"  placeholder="请输入押金" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">租金</label>
                            <div class="col-sm-10">
                                <input name="total_money" value="{$order['total_money']}" disabled type="text"  class="form-control"  placeholder="请输入租金"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="panel panel-default ">
                    <div class="panel-heading ">
                        收入
                    </div>
                    <div class="panel-body">

                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">超公里</label>
                            <div class="col-sm-10">
                                <input name="exceed_km" value="{$fees['exceed_km']}" type="text"  class="form-control"  placeholder="请输入超公里费用"/>
                            </div>
                        </div>

                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">超时</label>
                            <div class="col-sm-10">
                                <input name="exceed_time" value="{$fees['exceed_time']}" type="text"  class="form-control"  placeholder="请输入超时费用" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">司机</label>
                            <div class="col-sm-10">
                                <input name="driver_revenue" value="{$fees['driver_revenue']}" type="text"  class="form-control"  placeholder="请输入司机费用" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">送/收车费</label>
                            <div class="col-sm-10">
                                <input name="give_revenue" value="{$fees['give_revenue']}" type="text"  class="form-control"  placeholder="请输入送/收车费" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">油补</label>
                            <div class="col-sm-10">
                                <input name="gasoline_subsidy_revenue" value="{$fees['gasoline_subsidy_revenue']}" type="text"  class="form-control"  placeholder="请输入油补费用" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">违章</label>
                            <div class="col-sm-10">
                                <input name="peccant_revenue" value="{$fees['peccant_revenue']}" type="text"  class="form-control"  placeholder="请输入违章费用" />
                            </div>
                        </div>

                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">车损</label>
                            <div class="col-sm-10">
                                <input name="car_damage_revenue" value="{$fees['car_damage_revenue']}" type="text"  class="form-control"  placeholder="请输入车损费用" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">维修费</label>
                            <div class="col-sm-10">
                                <input name="repair_revenue" value="{$fees['repair_revenue']}" type="text"  class="form-control"  placeholder="请输入维修费费用" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">应收金额</label>
                            <div class="col-sm-10">
                                <input name="total_revenue" value="{$fees['total_revenue']}" type="text"  class="form-control"  placeholder="请输入应收金额" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="panel panel-default ">
                    <div class="panel-heading ">
                        费用
                    </div>
                    <div class="panel-body">
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">调入调出</label>
                            <div class="col-sm-10">
                                <input name="callout_cost" value="{$fees['callout_cost']}" type="text"  class="form-control"  placeholder="请输入调入调出费用"/>
                            </div>
                        </div>

                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">超公里</label>
                            <div class="col-sm-10">
                                <input name="exceed_km_cost" value="{$fees['exceed_km_cost']}" type="text"  class="form-control"  placeholder="请输入超公里费用" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">中介</label>
                            <div class="col-sm-10">
                                <input name="intermediary_cost" value="{$fees['intermediary_cost']}" type="text"  class="form-control"  placeholder="请输入中介费用" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">司机</label>
                            <div class="col-sm-10">
                                <input name="driver_cost" value="{$fees['driver_cost']}" type="text"  class="form-control"  placeholder="请输入司机费用" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">报销</label>
                            <div class="col-sm-10">
                                <input name="reimbursement_cost" value="{$fees['reimbursement_cost']}" type="text"  class="form-control"  placeholder="请输入报销费用" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">加油</label>
                            <div class="col-sm-10">
                                <input name="refueling_cost" value="{$fees['refueling_cost']}" type="text"  class="form-control"  placeholder="请输入加油费用" />
                            </div>
                        </div>

                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">油补</label>
                            <div class="col-sm-10">
                                <input name="refueling_subsidies_cost" value="{$fees['refueling_subsidies_cost']}" type="text"  class="form-control"  placeholder="请输入油补费用" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">违章</label>
                            <div class="col-sm-10">
                                <input name="peccancy_cost" value="{$fees['peccancy_cost']}" type="text"  class="form-control"  placeholder="请输入违章费用" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">维修保养</label>
                            <div class="col-sm-10">
                                <input name="maintenance_cost" value="{$fees['maintenance_cost']}" type="text"  class="form-control"  placeholder="请输入维修保养" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">费用合计</label>
                            <div class="col-sm-10">
                                <input name="total_cost" value="{$fees['total_cost']}" type="text"  class="form-control"  placeholder="请输入费用合计" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-sm-12">
                <div class="panel panel-default ">
                    <div class="panel-heading ">
                        费用合计
                    </div>
                    <div class="panel-body">
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">实收金额</label>
                            <div class="col-sm-10">
                                <input name="paid_cost" value="{$fees['paid_cost']}" type="text"  class="form-control"  placeholder="请输入实收金额" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">利润</label>
                            <div class="col-sm-10">
                                <input name="profit_cost" value="{$fees['profit_cost']}" type="text"  class="form-control"  placeholder="请输入利润" />
                            </div>
                        </div>
                        <div class="form-group" >
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">差异</label>
                            <div class="col-sm-10">
                                <input name="difference_cost" value="{$fees['difference_cost']}" type="text"  class="form-control"  placeholder="请输入差异费用" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-xs-12 col-sm-3 col-md-2 control-label">备注</label>
                            <div class="col-sm-10">
                                <textarea name="remark"  rows="4.5" class="form-control"  placeholder="请输入备注"/>{$fees['remark']}</textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="form-group">
            <input type="submit" name="submit" value="提交资料" class="btn col-lg-3" style="color: white;background-color: #444444;margin-left: 550px;"/>
            <input type="hidden" name="token" value="{$_W['token']}" />
        </div>
    </form>
</div>
<script src="../addons/yzzc_sun/template/public/zoomify.min.js"></script>

<script type="text/javascript">
    $(function(){
        $("#frame-2").show();
        $("#yframe-2").addClass("wyactive");
        $('.control_info img').zoomify();
    })
    function check() {
        var a= $('input[name="is_inner"]:checked').val()
        console.log(a)
        if(a==1){
            $('.is_inner1') .show();
            $('.is_inner2') .hide();
        }else{
            $('.is_inner2') .show();
            $('.is_inner1') .hide();
        }
    }
</script>